import { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw = {
  path: 'chat',
  name: 'chat',
  component: ()=>import('@/layout/components/Parent.vue'),
  meta: {
    title: '聊天管理',
    icon: 'Comment'
  },
  children: [
     {
      path: 'online',
      name: 'online',
      component: () => import('@/views/chat/online/index.vue'),
      meta: {
        title: '在线用户',
        requiresAuth: true,
        keepAlive: true,
      },
    },
    {
      path: 'singleList',
      name: 'singleList',
      component: () => import('@/views/chat/message/singleList.vue'),
      meta: {
        title: '单聊消息',
        requiresAuth: true,
        keepAlive: true,
      },
    },
    {
      path: 'groupList',
      name: 'groupList',
      component: () => import('@/views/chat/message/groupList.vue'),
      meta: {
        title: '群聊消息',
        requiresAuth: true,
        keepAlive: true,
      },
    },
    {
      path: 'groupInfoList',
      name: 'groupInfoList',
      component: () => import('@/views/chat/message/groupInfoList.vue'),
      meta: {
        title: '群组管理',
        requiresAuth: true,
        keepAlive: true,
      },
    }
  ],
};

export default routes;
